
<form action="<?= base_url() . ADMIN_FOLDER ?>/<?= get_segment(2) ?>/profile" method="post" class="fill-up"  enctype="multipart/form-data">
    <div class="row-fluid">
        <div class="span12">
            <div  class="box">
                <div class="tab-header icon-cog"> <?=lang('label_edit')?></div>

                <div id='data_contant' class="padded">


                    <div class="row-fluid">
                        <div class="span6" style="margin-left: 6%;">

                            <div class="input">
                                <label for="username">
                                   <strong><?=$result->username?></strong>
                                </label>
                            </div>
                            <div class="input">
                                <label for="name">
                                    <?=lang('label_name')?>
                                </label>

                                <?php echo form_error('name', '<div class="form_error">', '</div>'); ?>
                                <input name="name" placeholder="<?=lang('label_name')?>" value="<?= set_value('name', $result->name) ?>" type="text" />

                            </div>


                            
                            <div class="input">
                                <label for="email">
                                    <?=lang('label_email')?>
                                </label>

                                <?php echo form_error('email', '<div class="form_error">', '</div>'); ?>
                                <input name="email" placeholder="<?=lang('label_email')?>" value="<?= set_value('email', $result->email) ?>" class="input_email" type="text" />

                            </div>

                            <div class="input">
                                <label for="password">
                                    <?=lang('label_password')?>
                                </label>
                                <?php echo form_error('password', '<div class="form_error">', '</div>'); ?>
                                <input name="password" placeholder="<?=lang('label_password')?>" value=""  type="text" />
                            </div>
                            
                            <div class="input">
                                <label for="avatar">
                                    <?=lang('label_avatar')?>
                                </label>
                                <?php echo form_error('avatar', '<div class="form_error">', '</div>'); ?>
                                <input name="avatar" placeholder="<?=lang('label_avatar')?>"  type="file" />
                                <input type="hidden" name="oldfile" value="<?=$result->file?>" />
                                <span title="<img src='<?= base_url() . AVATAR_PATH. $result->file ?>' style='max-width:300px;' />" class="tip icon-camera" style="font-size:25px;margin-right: 300px;"></span>
                            </div>
                                          
                        </div>

                    </div>
                    <div class="form-actions form-actionss">

                        <button type="submit" class="button blue icon-pencil">   <?=lang('label_edit')?></button>

                    </div>



                </div>
            </div>
        </div>
    </div>


</form>
